package com.lsh.dao.db2;

import com.lsh.anno.ChangeSource;
import com.lsh.entity.BlogBean;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author ：LiuShihao
 * @date ：Created in 2020/6/23 9:05 上午
 * @desc ：
 */
@Mapper
@Repository
public interface BlogMapper {
    @ChangeSource
    List<BlogBean> findBlog();


    @ChangeSource
    @Delete("delete from blog where id = #{i}")
    int delBlog(int i);
}


